package com.wch.sqlSession;

import java.util.List;

public interface SqlSession {
    //查询所有
    public <E> List<E> selectList(String statementId,Object... params) throws Exception;

    //查询单个
    public <T> T selectOne(String statementId,Object... params) throws Exception;

    //增加、删除、修改单个
    public String update(String statementId,Object... params) throws Exception;

    //jdk生成IUserDao的动态代理
    public <T> T getMapper(Class<?> mapperClass);
}
